<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:63:"D:\wwwroot\app\public/../application/admin\view\news\index.html";i:1585294523;s:55:"D:\wwwroot\app\application\admin\view\public\_meta.html";i:1584923946;s:57:"D:\wwwroot\app\application\admin\view\public\_footer.html";i:1585016294;}*/ ?>
<!--header-->
<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="/favicon.ico">
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <link rel="stylesheet" type="text/css" href="/static/admin/uploadify/uploadify.css" />
    <link rel="stylesheet" type="text/css" href="/static/huadmin/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="/static/huadmin/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/static/huadmin/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="/static/huadmin/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="/static/huadmin/static/h-ui.admin/css/style.css" />
    <script>
        swf = "/static/admin/uploadify/uploadify.swf";
        image_upload_url = "<?php echo url('image/upload'); ?>";
    </script>
</head>

<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 资讯管理 <span class="c-gray en">&gt;</span> 资讯列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
    <div class="text-c">
        <form action="<?php echo url('news/index'); ?>" method="get">
            <span class="select-box inline">
    <select name="catid" class="select">
          <option value="0">全部分类</option>
            <?php foreach($cats as $k=>$v):
                $selected='';
                if($k==$catid){
                    $selected = 'selected';
                }
            ?>
          <option <?php echo $selected;?> value="<?php echo $k?>" ><?php echo $v?></option>
            <?php endforeach;?>
        </select>
    </span> 日期范围：
            <input type="text" name="start_time" class="input-text" id="countTimestart" onfocus="selecttime(1)" value="<?php echo empty($start_time)?'':$start_time?>" style="width:120px;"> -
            <input type="text" name="end_time" class="input-text" id="countTimestart" onfocus="selecttime(2)" value="<?php echo empty($end_time)?'':$end_time?>" style="width:120px;">
            <input type="text" name="title" id="" value="<?php echo empty($title)?'':$title?>" placeholder=" 资讯名称" style="width:250px" class="input-text">
            <button name="" value="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜资讯</button>
        </form>
    </div>

    <div class="mt-20">
        <table class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
            <thead>
                <tr class="text-c">
                    <th width="25"><input type="checkbox" name="" value=""></th>
                    <th width="80">ID</th>
                    <th>标题</th>
                    <th width="80">分类</th>
                    <th width="80">缩图</th>
                    <th width="120">更新时间</th>
                    <th width="40">是否推荐</th>
                    <th width="60">发布状态</th>
                    <th width="120">操作</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach($news as $k=>$v):?>
                <tr class="text-c">
                    <td><input type="checkbox" value="" name=""></td>
                    <td>
                        <?php echo $v['id']?>
                    </td>
                    <td class="text-l"><u style="cursor:pointer" class="text-primary" title="查看"><?php echo $v['title']?></u></td>
                    <td>
                        <?php echo getCatName($v['catid'])?>
                    </td>
                    <td><img width="60" height="60" class="picture-thumb" src="<?php echo $v['image']?>"></td>
                    <td>
                        <?php echo $v['update_time']?>
                    </td>
                    <td>
                        <?php echo isYesNo($v['is_position'])?>
                    </td>
                    <td class="td-status">
                        <?php echo status($v['id'], $v['status'])?>
                    </td>
                    <td class="f-14 td-manage"> <a style="text-decoration:none" class="ml-5" onClick="article_edit('资讯编辑','article-add.html','10001')" href="javascript:;" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="app_del(this)"
                            href="javascript:void(0);" title="删除" del_url="<?php echo url('news/delete',['id'=>$v['id']]); ?>"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
                </tr>
                <?php endforeach;?>

            </tbody>
        </table>
        <div id="laypage"></div>
    </div>
    <?php echo pagination($news); ?>
</div>
<!--header-->
<script type="text/javascript" src="/static/huadmin/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/static/huadmin/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/huadmin/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/huadmin/static/h-ui.admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="/static/admin/js/common.js"></script>

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/huadmin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="/static/huadmin/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">
</script>
<style>
    .imooc-app .pagination li {
        display: inline;
        padding-left: 5px;
        padding-right: 5px;
        border: 0px solid #ccc;
    }
    
    .pagination .active {
        background-color: #33CCFF
    }
    
    .pagination .disabled {
        color: #888888
    }
</style>
</body>

</html>